package beanstao.util.type.base;

import java.util.HashMap;
import java.util.Map;

import beanstao.util.exception.technical.util.reflect.FailToCastObjectException;
import beanstao.util.type.Castor;

@SuppressWarnings({ "rawtypes" })
public class String2Map extends Castor<String, Map>
{
	@Override
	public Map cast(String src, Class<?> toType, String... args) throws FailToCastObjectException
	{
		HashMap<String, String> map = new HashMap<String, String>();
		map.put(src, src);
		return map;
	}

}
